import axios from "./axios";

//天气
export const getWeather=(params)=>{
    return axios({
        method:'get',
        url:'http://v1.yiketianqi.com/api',
        params
    })
}
///学生分布情况
export const getStudent=()=>{
    return axios({
        method:'get',
        url:'http://localhost:3002/v1.0/api/intelligentDetection/data'
    })
}
//水电情况
export const getSD=()=>{
    return axios({
        method:'get',
        url:'http://localhost:3002/v1.0/api/intelligentDetection/dataTop'
    })
}
//校园人员流动情况
export const getPro=()=>{
    return axios({
        method:'get',
        url:'http://localhost:3002/v1.0/api/intelligentDetection/dataBottom'
    })
}

//地图 https://geo.datav.aliyun.com/areas_v3/bound/100000_full.json
export const getMap=(adcode)=>{
    return axios({
        method:'get',
        url:`https://geo.datav.aliyun.com/areas_v3/bound/${adcode}_full.json`
    })
}

//第二个页面
// 统计学生毕业各个城市分布
// export const getGo=()=>{
//     return axios({
//         method:'get',
//         url:'http://localhost:3002/v1.0/api/student/stats/distribution'
//     })
// }











